<?php

class MaestroComponent extends Component {

    public function __construct() {
        $this->Modelo = ClassRegistry::init('Modelo');
    }

    function lista_modelos($marca_id = 1) {
        $listadoModelos = $this->Modelo->find('list', array('fields' => array('Modelo.id', 'Modelo.nombre'), 'conditions' => array('Modelo.marca_id' => $marca_id, 'Modelo.estatus' => 1)));
        return $listadoModelos;
    }

}
